package com.wgy.blog.common.enums;

/**
 * @Author:Iny
 * @Data：2021/10/19 21:56
 */
public enum MessageEnum {

    SUCCESS(200,"成功"),
    ERROR(-1,"请求失败"),
    ADD_SUCCESS(200,"添加成功"),
    ADD_ERROR(-1,"命名重复"),
    UPDATE_SUCCESS(0,"修改成功"),
    DELETE_SUCCESS(0,"删除成功"),
    NOT_FOUND_USER(20001,"用户不存在");


    private final String message;

    private final Integer code;

    MessageEnum(Integer code, String message) {
        this.message = message;
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public Integer getCode() {
        return code;
    }
}
